-- GENERATED SPELL FOR [Shadow Demon] --


function spell0_23375(pUnit, Event) --@Consume Soul,n/a--
pUnit:FullCastSpellOnTarget(41080,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23375', 580, 1)
end

function spell1_23375(pUnit, Event) --@Paralyze,n/a--
pUnit:FullCastSpellOnTarget(41083,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23375', 558, 1)
end

function Sorts_23375(pUnit, Event)
local choix_sorts_23375 = math.random(0, 1)
if choix_sorts_23375 == 0 then
pUnit:RegisterEvent('spell0_23375', 1, 1)
end
if choix_sorts_23375 == 1 then
pUnit:RegisterEvent('spell1_23375', 1, 1)
end
end

function mob23375_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23375', math.random(1500, 3000), 1)
end

function mob23375_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23375_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23375_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23375, 1, 'mob23375_Action')
RegisterUnitEvent(23375, 2, 'mob23375_Leave')
RegisterUnitEvent(23375, 3, 'mob23375_Kill')
RegisterUnitEvent(23375, 4, 'mob23375_Die')
